<template>
	<view>
		<swiper indicator-dots :circular="true" interval="3000" :autoplay="true">
			<swiper-item v-for="item in lun" :key="item.id" @click="tonewsdetail(item)">
				<image :src="'http://124.93.196.45:10001'+item.advImg" style="width: 100%; height: 100%;"></image>
			</swiper-item>
		</swiper>
		<view class="d1">
			<rich-text :nodes="company.introduce"></rich-text>
			<text>运输方式：{{company.shippingMethod}}</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				lun:[],
				company:{},
				id:0
			}
		},
		onLoad(options) {
			this.id=options.id
			this.getlun()
			this.getcompany()
		},
		methods: {
			getlun(){
				this.api.get('/prod-api/api/rotation/list').then(res=>{
					this.lun=res.data.rows
				})
			},
			getcompany(){
				this.api.get('/prod-api/api/logistics-inquiry/logistics_company/'+this.id).then(res=>{
					this.company=res.data.data
				})
			}
		}
	}
</script>

<style lang="scss">
.d1{
	display: flex;
	flex-direction: column;
	line-height: 27px;
}
</style>
